package com.imooc.course5

/*
 * @Author Wangjin
 * @Date 2019-02-28
 * @Email wangjin4901@vip.qq.com
 */

// 通常用于模式匹配
object CaseClassApp {
  def main(args: Array[String]): Unit = {
    println(Dog("wangcai").name)
  }
}

// case class 不用new
case class Dog(name:String)
